package com.jstyle.jclife.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import com.jstyle.jclife.R;
import com.jstyle.jclife.utils.Utils;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class ActivitiesActivity extends BaseActivity{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_activities);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.iv_back,R.id.Rt_one,R.id.Rt_two,R.id.Rt_there,R.id.Rt_four})
    public void onViewClicked(View view) {
        if(Utils.isFastClick()){return;}
        switch (view.getId()) {
            case R.id.iv_back:
                finish();
                break;
            case R.id.Rt_one:
                Intent a=new Intent(this,TeamPKActivity.class);
                a.putExtra("titile","3");//代表3公里团队PK赛
                startActivity(a);
                break;
            case R.id.Rt_two:
                Intent b=new Intent(this,TeamPKActivity.class);
                b.putExtra("titile","5");//代表5公里团队PK赛
                startActivity(b);
                break;
            case R.id.Rt_there:
                Intent c=new Intent(this,TeamPKActivity.class);
                c.putExtra("titile","10");//代表10公里团队PK赛
                startActivity(c);
                break;
            case R.id.Rt_four:
                Intent d=new Intent(this,TeamPKActivity.class);
                d.putExtra("titile","15");//代表10公里团队PK赛
                startActivity(d);
                break;


        }
    }
}
